/*
 *  By Luocheng Tang
*/

package com.lvmama.vst.batis.dsobject;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;
/*
 * By Luocheng Tang
 */
@Profile({"release", "production", "staging", "release-candidate", "Read_Write"})
@ConfigurationProperties(locations = { "classpath:db/mysql.properties",  "classpath:mysql.properties", "mysql.properties"}, 
			prefix = "master.datasource")
@Component("DsObjectMaster")
public class DsObjectMaster extends DsObjectParent{
	public DsObjectMaster() {
		super();
	}

	@Override
	public String getObjectPrefix() {
		return "DsObjectMaster from master.datasource";
	}

	@Value("${master.datasource.url}")
	@Override
	public void setUrl(String url) {
		super.setUrl(url);
	}
	
	@Value("${master.datasource.username}")
	@Override
	public void setUsername(String username) {
		super.setUsername(username);
	}
	
	@Value("${master.datasource.password}")
	@Override
	public void setPassword(String password) {
		super.setPassword(password);
	}
}
